package com.atguigu.gulimall.test.test;

import lombok.Data;

@Data
public class Result<T> {
    private T data;
    private Integer code;
    private String msg;

   public static <T> Result success(T t){
       Result<T> tResult = new Result<>();
       tResult.code = 200;
       tResult.msg="成功";
       tResult.data=t;
       return tResult;
   }


}
